package com.smz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smz.entity.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityService extends IService<Commodity>    {
    Commodity findCommodityById(Integer id);

    List<Commodity> findAllCommodity();

    Page<Commodity> findPageCommodity(Integer current, Integer rows, String name);

    List<Commodity> selectCommodity(String pName);

    Page<Commodity> findPageCommodityByWy(Integer current, Integer rows, String name);

    void addCommodity(Commodity commodity);

    void removeCommodityById(@Param("id") Integer id);

    void modifyCommodity(Commodity commodity);
}
